""" 1_1 GPIO输出：Blink点灯 """
# https://learn.adafruit.com/adafruit-esp32-s3-tft-feather/blink

# board.LED 于 board.L等同

""" 交替亮灭 """
import time
import board
import digitalio

led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT
#led.switch_to_output()

while True:
    led.value = True
    time.sleep(0.5)
    led.value = False
    time.sleep(0.5)
